import axios from '../util/axios'

export function getSongList(params={}){
  return axios({
    url:'/admin/song',
    method:'GET',
    params
  })
}
export function getSongsById(params={}){
  return axios({
    url:'/admin/getSongsById',
    method:'GET',
    params
  })
}

export function addSong(params={}){
  return axios({
    url:'/admin/song',
    method:'POST',
    params
  })
}
export function editSong(params={}){
  return axios({
    url:'/admin/song',
    method:'PUT',
    params
  })
}

export function deleteSong(params={}){
  return axios({
    url:'/admin/song',
    method:'DELETE',
    params
  })
}